package cn.shop.cloud.web.redis;

import cn.shop.cloud.redis.KeyPrefix;

/**
 * @program: seckill-project01
 * @ClassName SeckillKeyPrefix
 * @description:
 * @author: Mokio
 * @create: 2025−01-02 09:09
 * @Version 2024 2.2 ; jdk1.8.0_181
 **/
public class SeckillKeyPrefix implements KeyPrefix {

    private String prefix;

    private int expireSeconds;



    @Override
    public String getPrefix() {
        return prefix;
    }

    @Override
    public int getExpireSeconds() {
        return expireSeconds;
    }


    public SeckillKeyPrefix(String prefix, int expireSeconds) {
        this.prefix = prefix;
        this.expireSeconds = expireSeconds;
    }


    public static  final SeckillKeyPrefix SECKILL_STOCK_COUNT =
            new SeckillKeyPrefix("seckillCount",-1);


    public static  final SeckillKeyPrefix SECKILL_GOOD_HASH =
            new SeckillKeyPrefix("seckillGoodHash",-1);


}